/**
 * Created by lk on 17/6/4.
 */
import axios from "../../utils/axios";

export function gameServers() {
    return axios({
        url: "/admin/dnf/goldCoin/servers",
        method: "get",
    });
}

// 列表
export function goldList(query) {
    return axios({
        url: "/admin/dnf/goldCoin/page",
        method: "get",
        params: query
    });
}

// 保存
export function goldSave(data, formName, method = "post") {
    var url = formName === "add" ? "/admin/dnf/goldCoin/save" : "/admin/dnf/goldCoin/edit";
    return axios({
        url: url,
        method: method,
        data: data
    });
}

// 删除
export function goldDelete(data) {
    return axios({
        url: "/admin/dnf/goldCoin/delete",
        method: "post",
        data: data
    });
}
